package com.ml.springboot.mapper;

import com.ml.springboot.pojo.Leave;
import com.ml.springboot.pojo.VO.LeaveVO;
import com.ml.springboot.pojo.query.LeaveQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LeaveMapper {
    List<LeaveVO> list(LeaveQuery leaveQuery);

    void deleteById(Integer id);

    void add(Leave leave);

    Leave selectById(Integer id);

    void update(Leave leave);

    void pass(Integer id);

    void nopass(Integer id);

    List<LeaveVO> leaveCount();
}
